Fluent Assertions Documentation
FluentAssertions Namespace / EventRaisingExtensions Class / WithArgs Method / WithArgs<T>(IEventRecording,Expression<Func<T,Boolean>>) Method
In This Topic
    WithArgs<T>(IEventRecording,Expression<Func<T,Boolean>>) Method
    In This Topic
    Asserts that at least one occurrence of the events has some argument of the expected type T that matches the given predicate.
    Syntax

    Parameters

    eventRecording
    predicate

    Type Parameters

    T

    Return Value

    Returns only the events having some argument matching both type and predicate.
    Exceptions
    ExceptionDescription
    predicate is a null reference (Nothing in Visual Basic).
    Requirements

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also